package business.sale.entities;

import sale.entities.PaymentVO;

public class Payment {

	private int id;
	private String type;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	public Payment(int id, String type) {
		this.id = id;
		this.type = type;
	}
	
	public Payment(PaymentVO pay){
		if(pay!=null){
			this.id = pay.getId();
			this.type = pay.getType();
		}
	}
	
	public PaymentVO toVO(){
		return new PaymentVO(this.id, this.type);
	}
}
